import request from '@/utils/request'

//查询转移单列表(分页)
export function GetTransferList(data) {
  return request({
    url: '/pda/wm/transfer/list',
    headers: {
      isToken: true
    },
    method: 'post',
    data: data
  })
}

//新增转移单(实时转移)
export function AddTransfer(data) {
  return request({
    url: '/pda/wm/transfer/add',
    headers: {
      isToken: true
    },
    method: 'post',
    data: data
  })
}

//修改转移单
export function UpdateTransfer(data) {
  return request({
    url: '/pda/wm/transfer/update',
    headers: {
      isToken: true
    },
    method: 'put',
    data: data
  })
}

//执行转移单
export function ExecuteTransfer(transferId) {
  return request({
    url: '/pda/wm/transfer/execute/'+transferId,
    headers: {
      isToken: true
    },
    method: 'post'
  })
}


//获取转移单详细信息
export function GetTransferInfo(transferId) {
  return request({
    url: 'pda/wm/transfer/'+transferId,
	headers: {
	  isToken: true
	},
    method: 'get'
  })
}

//删除转移单
export function DelTransfer(transferId) {
	return request({
		url: 'pda/wm/transfer/'+transferId,
		headers: {
			isToken: true
		},
		method: 'delete'
	})
}